package com.mp.approvalreq.entity.dto;

import com.alibaba.fastjson.JSONObject;

import java.util.Objects;

public class RedPointDTO {

	private Integer companyId;
	private Integer requestId;
	private Integer contactId;
	private Integer companyInfoId;
	private Integer commentRed;
	private Integer refuseRed;
	private Integer atRed;
	private Integer messageId;
	
	
	public RedPointDTO() {
	}

	public Integer getCompanyId() {
		return companyId;
	}

	public void setCompanyId(Integer companyId) {
		this.companyId = companyId;
	}

	public Integer getRequestId() {
		return requestId;
	}
	
	public void setRequestId(Integer requestId) {
		this.requestId = requestId;
	}
	
	public Integer getContactId() {
		return contactId;
	}
	
	public void setContactId(Integer contactId) {
		this.contactId = contactId;
	}
	
	public Integer getCompanyInfoId() {
		return companyInfoId;
	}
	
	public void setCompanyInfoId(Integer companyInfoId) {
		this.companyInfoId = companyInfoId;
	}
	
	public Integer getCommentRed() {
		return commentRed;
	}
	
	public void setCommentRed(Integer commentRed) {
		this.commentRed = commentRed;
	}
	
	public Integer getRefuseRed() {
		return refuseRed;
	}
	
	public void setRefuseRed(Integer refuseRed) {
		this.refuseRed = refuseRed;
	}
	
	public Integer getAtRed() {
		return atRed;
	}
	
	public void setAtRed(Integer atRed) {
		this.atRed = atRed;
	}

	public Integer getMessageId() {
		return messageId;
	}

	public void setMessageId(Integer messageId) {
		this.messageId = messageId;
	}

	@Override
	public boolean equals(Object o) {
		if (this == o) {
			return true;
		}
		if (o == null || getClass() != o.getClass()) {
			return false;
		}
		RedPointDTO that = (RedPointDTO) o;
		return Objects.equals(requestId, that.requestId) &&
				Objects.equals(contactId, that.contactId) &&
				Objects.equals(companyInfoId, that.companyInfoId) &&
				Objects.equals(commentRed, that.commentRed) &&
				Objects.equals(refuseRed, that.refuseRed) &&
				Objects.equals(atRed, that.atRed);
	}
	
	@Override
	public int hashCode() {
		return Objects.hash(requestId, contactId, companyInfoId, commentRed, refuseRed, atRed);
	}
	
	@Override
	public String toString() {
		return JSONObject.toJSONString(this);
	}
}
